﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ERP.Domain.Entities;
using Microsoft.EntityFrameworkCore;    
namespace Seven.ERP.EntityFarmworkCore
{
    public class ERPDbContext : DbContext
    {
        public ERPDbContext(DbContextOptions options) : base(options)
        {

        }
        public DbSet<Account> Accounts { get; set; }
        public DbSet<Depot> Depots { get; set; }
        public DbSet<Finance> Finances { get; set; }
        public DbSet<FinanceItem> FinanceItems { get; set; }
        public DbSet<Function> Functions { get; set; }
        public DbSet<InOutItem> InOutItems { get; set; }
        public DbSet<OperationLog> OperationLogs { get; set; }
        public DbSet<GoodType> GoodTypes { get; set; }
        public DbSet<Good> Goods { get; set; }
        public DbSet<Receipt> Receipts { get; set; }
        public DbSet<ReceiptItem> ReceiptItems { get; set; }

        //-----------供货商信息
        public DbSet<SupplierCustomerInfo> SupplierCustomerInfos { get; set; }
        //---------------shx
        public DbSet<CommodityInfo> CommodityInfos { get; set; }
        public DbSet<Entity> Entityies { get; set; }
        public DbSet<EntityClass> EntityClasss { get; set; }
        public DbSet<FaceAttribute> FaceAttributes { get; set; }
        public DbSet<InitialStockInfo> InitialStockInfos { get; set; }
        public DbSet<InventoryInfo> InventoryInfos { get; set; }
        public DbSet<Message> Messages { get; set; }
        public DbSet<OrganizationInfo> OrganizationInfos { get; set; }
        public DbSet<OrgaUserRel> OrgaUserRels { get; set; }
        public DbSet<SpecificEntity> SpecificEntities { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<Purchase> Purchases { get; set; }
        public DbSet<Security> Securitys { get; set; }
        public DbSet<Stateinfo> Stateinfos { get; set; }

        ///------------yj
        ///
        public DbSet<PlatformConfig> PlatformConfigs { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<Sequence> Sequences { get; set; }
        public DbSet<SerialNumber> SerialNumbers { get; set; }
        public DbSet<Supplier> Suppliers { get; set; }
        public DbSet<SystemConfig> SystemConfigs { get; set; }
        public DbSet<Tenant> Tenants { get; set; }
        public DbSet<Unit> Units { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<UserBusiness> UserBusinesss { get; set; }
    }
}
